[Flex Beginner question] String and value object

Posted by James on Stack Overflow See other posts from Stack Overflow or by James
Published on 2010-03-20T18:58:10Z Indexed on 2010/03/20 19:01 UTC
Read the original article Hit count: 336

Filed under:
|

Hi all,

In php we can assign a method name to a variable and then use that variable to call the method. For example:


$image_create_func = 'ImageCreateFromGIF';
$newImage = $image_create_func($oldImage);

But can we do this in Flex?
In flex, I have the string

public var key:String = "email"
And I also have a value object searchTerm:SearchTermVO which has a public property "email" (searchTerm.email).
Now I want to do searchTerm.email by doing something like in php: searchTerm.key but it's not possible.
Can anybody help me with this plz?
Thank you.

© Stack Overflow or respective owner

Related posts about flex

Related posts about php